<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/WEB-INF/jsp/common/taglib.jsp" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>

<!DOCTYPE HTML>
<html>
<head>
    <%@include file="/WEB-INF/layouts/meta.jsp" %>

    <style type="text/css" >
        body{overflow: hidden}
        .table-list{height: 256px;}
    </style>
</head>
<body>
<div class="unit" id="groupUsers">
    <div class="width-110 label label-info label-xlg arrowed-in arrowed-in-right" style="width: 600px">
        <%--<h5 class="lighter smaller">组内用户列表</h5>--%>
        组内用户列表
    </div>
    <div class="row row_height_y">
        <div class="pull-left">
            <div class="ui-pg-div icon_left">
                <button class="btn btn-minier btn-primary"
                        <%--onClick="win.init({title:'',rel:'groupUsers'}).flushDoubleDiv('${ctx}/del_pri_pop.do?resourceId={resourceId}&hadoopUserId={id}','确定要移除所选用户的权限吗？')">删除权限--%>
                        onClick="deleteJurisdiction()">删除权限
                </button>
                <div id="ahref" style="display: none;">
                    <a href="${ctxRoot}/meta/hdfs/query_groupuser_pop.do?resourceId=${resourceId}&divId=groupUsers"
                       target="li_1">li_1</a>
                    <a href="${ctxRoot}/meta/hdfs/query_otheruser_pop.do?resourceId=${resourceId}&divId=otherUsers"
                       target="li_2">li_2</a>
                </div>
            </div>
        </div>
        <div class="pull-right2">
            <form rel="groupUsers" action="${ctx}/query_groupuser_pop.do" onsubmit="return search(this)">
                <c:choose>
                    <c:when test="${param.resourceId==null || param.resourceId==''}">
                        <input type="hidden" name="resourceId" value="${param.resourceId}"/>
                    </c:when>
                    <c:otherwise>
                        <input type="hidden" name="resourceId" value="${resourceId}"/>
                    </c:otherwise>
                </c:choose>
                <input type="hidden" name="divId_groupuser" value="${divId}"/>
                <input type="text" placeholder="用户名称" name="Q_LIKE_userName" value="${param['Q_LIKE_userName']}"/>
                <input type="text" placeholder="租户名称" name="Q_LIKE_systemCompany.companyName" value="${param['Q_LIKE_systemCompany.companyName']}"/>
                <span class="input-group-btn">
                    <button class="btn btn-info btn-minier" type="submit">
                        <i class="ace-icon glyphicon glyphicon-search"></i>
                    </button>
                </span>
            </form>
        </div>
    </div>
    <div class="table-responsive td_o table-responsive_f  table-list">
        <table id="mainId" class="table table-striped table-bordered table-hover dataTable">
            <thead>
            <tr>
                <th width="1%" class="center">
                    <label>
                        <input class="ace" type="checkbox" onclick="checkAll(this)"/>
                        <span class="lbl"></span>
                    </label>
                </th>
                <th width="20%" class="center">用户名</th>
                <th width="30%" class="center">租户名称</th>
                <%--<th width="20%" class="center">联系人</th>--%>
                <%--<th width="39%" class="center">联系电话</th>--%>
                <th width="15%">用户类型</th>
            </tr>
            </thead>

            <tbody >

            <c:forEach items="${page_group.list}" var="item">
                <tr>
                    <td class="center">
                        <label>
                            <input type="checkbox" class="ace" name="id" value="${item.id}" />
                            <span class="lbl"></span>
                        </label>
                    </td>
                    <td class="center">${item.userName}</td>
                    <td class="center">${item.systemCompany.companyName}</td>
                    <%--<td class="center">${item.contactPerson}</td>--%>
                    <%--<td class="center">${item.phoneNumber}</td>--%>
                    <td class="center">
                        <c:if test="${item.userTypeId==1}">厂商</c:if>
                        <c:if test="${item.userTypeId==2}">内部用户</c:if>
                    </td>
                </tr>
            </c:forEach>
            </tbody>
        </table>
    </div>
    <!-- /.table-responsive -->
    <div class="row row_height_x message-footer">
        <c:if test="${page_group != null}">
            <tags:page page="${page_group}"/>
        </c:if>
    </div>
</div>
<script src="${ctxRoot}/static/js_project/meta/hdfs/query_groupuser_pop.js"></script>

</body>
</html>